Skip to content

spike(rust/fixtures): extract audio fixtures and compute JS baseline offset - #101

Merged
natashaannn merged 1 commit into
mainfrom
spike/issue-94-fixtures
Jul 12, 2026
Merged

spike(rust/fixtures): extract audio fixtures and compute JS baseline offset#101
natashaannn merged 1 commit into
mainfrom
spike/issue-94-fixtures

Conversation

@natashaannn

@natashaannn natashaannn commented Jul 12, 2026

Copy link
Copy Markdown
Member

Closes #94

Summary

  • Extracts two 8 kHz mono s16le WAV fixtures (300 s, ~4.6 MB each) from the raw episode files using the exact ffmpeg params AudioSyncer.js uses internally
  • Computes the JS baseline by running AudioSyncer.computeCrossCorrelation → findBestLag → validatePeak directly against the fixture WAVs; result committed as baseline.json
  • Fixture pair has a genuine non-zero lag (−6.8 s, SNR 9.8) from two distinct signals — camera mic vs external audio

Sources:

Fixture Source
video-audio.wav input/video/IMG_5240.MOV — raw camera audio (stereo → mono)
audio-track.wav input/audio/AiBubble.wav — raw external audio

Test plan

  • ls spike/audio-sync/fixtures/*.wav | wc -l prints 2
  • cat spike/audio-sync/fixtures/baseline.json shows lagSeconds, snr, isReliable fields
  • Both WAVs play as clearly different audio (camera mic vs external mic)

🤖 Generated with Claude Code

…offset

Closes #94. Two 8 kHz mono s16le WAV fixtures (300 s each, ~4.6 MB each)
extracted from the raw episode files using the exact ffmpeg params
AudioSyncer.js uses internally. JS baseline computed by running
AudioSyncer.computeCrossCorrelation → findBestLag → validatePeak against
the fixture WAVs directly; lagSeconds: -6.8 s, SNR: 9.8, isReliable: true.

Sources:
  video-audio.wav ← input/video/IMG_5240.MOV (raw camera audio, stereo→mono)
  audio-track.wav ← input/audio/AiBubble.wav

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@natashaannn
natashaannn merged commit d444882 into main Jul 12, 2026
1 check passed
@natashaannn
natashaannn deleted the spike/issue-94-fixtures branch July 12, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spike(rust/fixtures): extract audio fixtures and compute JS baseline offset

1 participant